<?php get_header(); // mandamos llamar el header ?>
<script type="text/javascript" src="<?php  bloginfo( 'template_url' ); ?>/js/noise-portafolio.js"></script>
	<style type="text/css"> 
		#content-sidebar-blog .span4{
			width: 300px !important;
		}
		#content-sidebar-blog .span4 h2{
			float: left;
		}
		a{ color:#C8DCE5; }
		h3{ 
			margin: 15px 10px 0; 
			color:#FFF; 
			font:18pt Arial, sans-serif; 
			letter-spacing:-1px; 
			font-weight: bold;
			border-bottom: 1px solid #fff;
		}

		.boxgrid{ 
			float: left;
			height: 140px;
			margin: 10px;
			overflow: hidden;
			position: relative;
			width: 140px;
			border-radius: 75px 75px 75px 75px;
			text-align: center;
		}
		.boxgrid img{ 
			position: absolute; 
			top: 0; 
			left: 0; 
			border: 0; 
		}
		.boxgrid p{ 
			padding: 0 10px; 
			color:#afafaf; 
			font-weight:bold; 
			font:10pt "Lucida Grande", Arial, sans-serif; 
		}

		.boxcaption{ 
			float: left; 
			position: absolute; 
			background: #000; 
			height: 140px; 
			width: 100%; 
			opacity: .8; 
			/* For IE 5-7 */
			filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
			/* For IE 8 */
			-MS-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
		}
		.captionfull .boxcaption {
			top: 260px;
			left: 0;
		}
		.caption .boxcaption {
			top: 260px;
			left: 0;
		}
		.carousel-inner {
			overflow: visible !important;
		}
	</style>
<!-- INICIA CONTENIDO -->
<div id="container" class="clearfix">
    <!-- INICIA SENTENCIA -->
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<?php 
	
	$category = get_the_category( get_the_ID() ); 
        //echo $category[0]->slug;
	if($category[0]->slug == "equipo" ){
		 include (TEMPLATEPATH . '/singleequipo.php');
	}elseif($category[0]->slug == "blog" ){
		 include (TEMPLATEPATH . '/singleblog.php');
	}else{
            include (TEMPLATEPATH . '/singleportafolio.php');
        }
	?>
  <?php //} ?>
  <?php endwhile; else: ?>
  
<!-- SI NO SE ENCUENTRAN POST -->
  <p>Lo sentimos, no encontramos ningun post.</p>
  <?php endif; ?>
